package com.dz.goods.domain.repository;

import com.dz.goods.domain.entity.Sku;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SkuRepository extends JpaRepository<Sku,Long>, QuerydslPredicateExecutor<Sku> {
    List<Sku> findBySpuIdAndDeleteFlag(Long spuId,Integer deleteFlag);
}
